<?php

namespace App\Api;

use App\Http\Controllers\Controller;
use App\Models\Config;
use Illuminate\Http\Request;

class ConfigController extends Controller
{
    public function info()
    {
        return Config::find(1);
    }

    public function change(Request $request)
    {
        $config = Config::find(1);

        $config->update($request->input());
        return $this->message('修改成功');
    }

}
